package com.imooc.diveinspringboot.custom.tags;

import org.springframework.beans.factory.xml.NamespaceHandlerSupport;

/**
 * 当遇到自定义的标签<pre><user:xxxx></pre>这样类似于以user开头的元素，就会扔给UserBeanDefinitionParser去解析
 *
 * @author Chris
 * @date 2019/04/04 17:45
 * @since 1.0.0
 */
public class MyNamespaceHandler extends NamespaceHandlerSupport {
    @Override
    public void init() {
        registerBeanDefinitionParser("user", new UserBeanDefinitionParser());
    }
}
